<template>
  <div ref='wrapper'>
    <div class="content">
      <slot></slot>
    </div>
  </div>
</template>

<script>
import BScroll from 'better-scroll'

export default {
  name: 'MyScroll',
  data() {
    return {
      scroll: null
    }
  },
  methods: {
    // 初始化
    initScroll() {
      this.scroll = new BScroll(this.$refs.wrapper, {
        click: true
      })
    }
  }
}
</script>

<style scoped>
.content {
  height: 100%;
}
</style>
